package com.yuxin.tongyi.lsll.util;

import android.app.DatePickerDialog;
import android.app.DatePickerDialog.OnDateSetListener;
import android.content.Context;
import android.widget.DatePicker;

/**
 * 自定义日期控件
 * @author zlh
 *
 */
class CustomerDatePickerDialog extends DatePickerDialog {

	public CustomerDatePickerDialog(Context context,
			OnDateSetListener callBack, int year, int monthOfYear,
			int dayOfMonth) {
		super(context, callBack, year, monthOfYear, dayOfMonth);
		this.setTitle(year+"年"+(monthOfYear + 1) + "月");
	}

	@Override
	public void onDateChanged(DatePicker view, int year, int month, int day) {
		super.onDateChanged(view, year, month, day);
		this.setTitle(year+"年"+(month + 1) + "月");
	}
}